<template>
  <div id="app" style="height: 100%">
    <el-header>
      <indexTop style="z-index: 99;position: fixed;height: 60px"/>
    </el-header>
    <el-main style="width: 100%;padding: 0;">
      <router-view name="main"/>
    </el-main>
    <el-footer>
      <indexFooter/>
    </el-footer>
    <!--回到顶部组件-->
    <el-backtop>
      <div style="{
        height: 100%;
        width: 100%;
        background-color: #f2f5f6;
        box-shadow: 0 0 6px rgba(0,0,0, .12);
        text-align: center;
        line-height: 40px;
        color: #1989fa;
      }">
        <i class="el-icon-top"/>
      </div>
    </el-backtop>
  </div>
</template>

<script>
import indexTop from './components/indexTop/indexTop'
import indexFooter from './components/indexFooter/indexFooter'

export default {
  name: 'App',
  components: {indexTop, indexFooter}
}
</script>

<style>
  body {
    height: 100%;
  }

  *, body {
    margin: 0;
    padding: 0;
  }

  .el-header {
    padding: 0;
  }

  #app {
    font-family: 'Avenir', Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
    /*margin-top: 60px;*/
  }

  .el-menu.el-menu--horizontal {
    border: none;
  }
</style>
